//
//  JAGSDKConfig.h
//  JAGatherAdDemo
//
//  Created by Yc on 2022/4/19.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

extern NSString *const JAGSDKVersion;

@interface JAGSDKConfig : NSObject

/// App自定义规则全局设置，对全部Placement有效
@property(nonatomic) NSDictionary *customData;

+ (instancetype)shareInstance;

/// SDK版本
+ (NSString *)sdkVersion;

/// 开启日志功能
+ (void)setLogEnabled:(BOOL)logEnabled;

/// 个性化推荐开关：关闭后，看到的⼴告数量不变，相关度将降低。
/// - Parameter state: YES:开启 NO:限制关闭  默认开启
+ (void)setPersonalizedAdState:(BOOL)state;

/// 获取个性化推荐状态
+ (BOOL)getPersonalizedAdState;

/// 广告位请求展示周期内的日志（需发起loadAd才有内容;）
+ (NSArray*)logCollection;

/// 注册
/// @param appId appId
/// @param appKey appKey
/// @param completion 回调
- (void)registerAppId:(NSString *)appId
               appKey:(NSString *)appKey
           completion:(void(^)(BOOL result, NSError *_Nullable error))completion;

/// 广告位自定义规则
/// @param customData 自定义规则数据
/// @param placementID 广告位(仅对当前Placement有效)
- (void)setCustomData:(NSDictionary *)customData forPlacementID:(NSString*)placementID;

@end

NS_ASSUME_NONNULL_END
